package com.gitee.hengboy.mybatis.enhance.sample.entity;

import com.gitee.hengboy.mybatis.enhance.common.annotation.Column;
import com.gitee.hengboy.mybatis.enhance.common.annotation.Id;
import com.gitee.hengboy.mybatis.enhance.common.annotation.Table;
import com.gitee.hengboy.mybatis.enhance.common.enums.KeyGeneratorTypeEnum;
import lombok.Data;

import java.sql.Timestamp;

/**
 * 用户基本信息数据实体
 *
 * @author：于起宇 <br/>
 * ===============================
 * Created with IDEA.
 * Date：2018/8/3
 * Time：1:52 PM
 * 简书：http://www.jianshu.com/u/092df3f77bca
 * ================================
 */
@Data
@Table(name = "test_user_info")
public class UserEntity {
    /**
     * 用户编号
     */
    @Column(name = "UI_ID")
    @Id(generatorType = KeyGeneratorTypeEnum.AUTO)
    private Integer userId;
    /**
     * 用户名
     */
    @Column(name = "UI_NAME")
    private String userName;
    /**
     * 用户密码
     */
    @Column(name = "UI_PASSWORD")
    private String userPassword;
    /**
     * 用户年龄
     */
    @Column(name = "UI_AGE")
    private int userAge;
    /**
     * 用户性别
     */
    @Column(name = "UI_SEX")
    private String userSex;
    /**
     * 用户账号
     */
    @Column(name = "UI_ACCOUNT")
    private String userAccount;
    /**
     * 用户创建时间
     */
    @Column(name = "UI_CREATE_TIME")
    private Timestamp createTime;
    /**
     * 用户备注
     */
    @Column(name = "UI_MARK")
    private String mark;
}
